import App from './App' 
import Vue from 'vue'
import store from './store/index.js' // 引入 store 
Vue.prototype.$store = store

 // 微信SDK
 // #ifdef H5
 import weixin from '@/utils/weixin.js' 
 Vue.use(weixin,app) 
 if (typeof window.entryUrl === 'undefined' || window.entryurl === '') window.entryUrl = location.href.split('#')[0]
 // #endif
if (uni.getSystemInfoSync().platform !== "devtools") {
	console.log = () => {}
}
//检测用户是否登录
Vue.prototype.checkLogin = function(token){
	if(token !== 'undefined' && token !== ''){
			return token;
	}
}

// #ifndef VUE3
import './uni.promisify.adaptor'
Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
  ...App
})
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
}
// #endif